package com.ulife.order.api.core.cancel;

import com.ulife.common.gateway.utils.annotation.Description;

/**
 * Created by Lbq on 2016/05/25.
 *
 *
 */
@Description("订单取消单据状态")
public enum CancelBillStatus {
    @Description("已创建")
    Created(1),
    @Description("退款中")
    Refunding(100),
    @Description("已完成")
    Finished(200);

    private int value = 1;

    private CancelBillStatus(int value) {
        this.value = value;
    }

    public static CancelBillStatus valueOf(int value){
        switch (value){
            case 0:return Created;
            case 100:return Refunding;
            case 200:return Finished;
            default:return null;
        }
    }
    public int value(){
        return this.value;
    }
}
